package com.tlgen.orm.test;

import com.tlgen.orm.annotation.Association;
import com.tlgen.orm.annotation.Collection;
import com.tlgen.orm.model.BaseEntity;
import lombok.Data;

import java.util.List;

@Data
public class Author extends BaseEntity<Long> {

    private String name;

    @Association
    private AuthorProfile authorProfile;

    @Association
    private AuthorContact authorContact;

    @Collection(middle = AuthorBook.class)
    private List<Book> books;

}